<template>
  <div>
    <Editor height="690px" :publish="true" :title="article.title" :content="article.content" :article_id="article.article_id" />
  </div>
</template>

<script>
import articleApi from "@/api/article"
import Editor from '@/components/Editor/update.vue'
export default {
  components: {
    Editor,
  },
  data() {
    return {
      article_id: '',
      article: {},
    }
  },
  created() {
    this.article_id=this.$route.params.article_id;
    this.getArticle()
  },
  methods: {
    async getArticle() {
      this.article=await (await articleApi.getDetail(this.article_id)).data
    }
  }
}

</script>